00001
00002
00003 case L2CA_Service_Union_Read_tag: {
00004 int i;
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 if(IsMaster_Value())
00016 vccPrintPdxDebugInfo("%_START_ MASTER : GBI ->received [Read_Confirm] from LL - return Read_Request %_END_");
00017 else
00018 vccPrintPdxDebugInfo("%_START_ SLAVE : GBI ->received [Read_Confirm] from LL - return Read_Request %_END_");
00019
00020
00021
00022 Result = L2CA_packet_in->Service.__union.Read.__union.Result.Result;
00023 N = L2CA_packet_in->Service.__union.Read.__union.Result.N;
00024
00025
00026 for(i = 0; i < N; i++){
00027 out_String[i] = L2CA_packet_in->Service.__union.Read.__union.Result.InBuffer[i];
00028 }
00029 out_String[N] = 0;
00030
00031
00032 Output_Post(out_String);
00033
00034
00035 if(IsMaster_Value())
00036 vccPrintPdxDebugInfo("%_START_ MASTER : GBI -Read ->sent [%s] to NET %_END_", out_String);
00037 else
00038 vccPrintPdxDebugInfo("%_START_ SLAVE : GBI -Read ->sent [%s] to NET %_END_", out_String);
00039
00040
00041
00042 L2CA_packet_out.Service.__unionTag = L2CA_Service_Union_Read_tag;
00043 L2CA_packet_out.Service.__union.Read.__unionTag = L2CA_Read_Union_Request_tag;
00044
00045 L2CA_packet_out.SourceID = 0x02;
00046 L2CA_packet_out.Service.__union.Read.__union.Request.CID = CID;
00047 L2CA_packet_out.Service.__union.Read.__union.Request.Length = 1504;
00048
00049 L2CA_Packet_Out_Post(&L2CA_packet_out);
00050
00051
00052 if(IsMaster_Value())
00053 vccPrintPdxDebugInfo("%_START_ MASTER : GBI -Read ->sent [Read_Request] to LL %_END_");
00054 else
00055 vccPrintPdxDebugInfo("%_START_ SLAVE : GBI -Read ->sent [Read_Request] to LL %_END_");
00056
00057 break;
00058 }